@extends('admin.layout.index')

@section('css')

<link rel="stylesheet" type="text/css" href="/admins/css/page_page.css">
@endsection
@section('content')
<div class="mws-panel grid_8">
                	<div class="mws-panel-header">
                    	<span><i class="icon-table"></i>文章分类</span>
                    	
                    </div>
                    <div class="mws-panel-body no-padding">
                        <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper" role="grid">
	                        <div id="DataTables_Table_0_length" class="dataTables_length">
                                <!-- 添加分类链接 -->
		                       <a href="/admin/aclass/add" style="color:black;font-size:20px;margin-left:20px" title="添加分类"><i class="icol32-add"></i></a>
                            </div>
                            <form action="/admin/aclass/index" method="get">
		                      <div class="dataTables_filter" id="DataTables_Table_0_filter">
		                        <label>关键字: <input aria-controls="DataTables_Table_0" type="text" name="search" value="{{ $request['search'] or ''}}"></label>
		                        <input type="submit" value="搜索">
	                        </div>
                            </form>
                        <table class="mws-datatable mws-table dataTable" id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
	                            <thead>
	                                <tr role="row"><th class="sorting_asc"  style="width: 160px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">分类编号</th>
	                                <th class="sorting"  style="width: 208px;" aria-label="Browser: activate to sort column ascending">分类排序</th>
	                                <th class="sorting"  style="width: 195px;" aria-label="Platform(s): activate to sort column ascending">分类名称</th>
	                                <th class="sorting"  style="width: 135px;" aria-label="Engine version: activate to sort column ascending">操作</th>
	                            </thead>
                            
                            <tbody role="alert" aria-live="polite" aria-relevant="all">
                            @foreach($data as $k=>$v)
                            <tr class="odd">
                                    <td class="  sorting_1">{{$v['id']}}</td>
                                    <td class=" ">{{$v['ord']}}</td>	
                                    <td class=" ">{{$v['catname']}}</td>
                                    <td class=" ">
	                                    	<a href="/admin/aclass/delete/{{$v['id']}}" style="color:black;font-size:20px;margin-left:20px" title="删除"><i class="icon-trash"></i></a>
	                                    	<a href="/admin/aclass/edit/{{$v['id']}}" style="color:black;font-size:20px;margin-left:20px" title="修改"><i class="icon-pencil-2"></i></a>
	                                </td>
                            </tr>
                            @endforeach
                            </tbody>
                        </table>
                                <div class="dataTables_info" id="DataTables_Table_0_info">Showing 1 to 10 of 57 entries</div>
                                <div id="page_page" class="dataTables_paginate paging_full_numbers">
                                    <!-- 接收分配过来的值data -->
                                    {!! $data->render() !!}
                                </div>
                             

                    </div>
                </div>
@endsection